const rightService = require('../service/rightService')
class RightController {
  async getRightList(ctx, next) {
    const { roleId } = ctx.params 
    const res = await rightService.getRightList(roleId)
    ctx.body = {
      data:res
    }
  }
}

module.exports = new RightController()